aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-07 00:53:13 +0200
committerLorenz Diener <[email protected]>2018-05-07 00:53:13 +0200
commit8d5fe70c7e52656b2f89d0acfb1aed23bf583041 (patch)
treea210ef1ba6255d8f64fdd623de41f0e6931c4508 /tests/cassettes/test_media_post[False].yaml
parentc0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff)
downloadmastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz
Fix some bugs, update tests
Diffstat (limited to 'tests/cassettes/test_media_post[False].yaml')
-rw-r--r--tests/cassettes/test_media_post[False].yaml50
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml
index 1e724c7..de433e9 100644
--- a/tests/cassettes/test_media_post[False].yaml
+++ b/tests/cassettes/test_media_post[False].yaml
@@ -1,11 +1,11 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: !!binary | 3 body: !!binary |
4 LS1mZGUzMDBkMDY1Yzk0MWNhYTFlOTUwMDQ5NzY0ZmU0NA0KQ29udGVudC1EaXNwb3NpdGlvbjog 4 LS01ZDQ4ZDVkOGNmZWY0YjU5YWEyZmQwZTQ5MDM5NTdlOA0KQ29udGVudC1EaXNwb3NpdGlvbjog
5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u 5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u
6 eSB3YWxrDQotLWZkZTMwMGQwNjVjOTQxY2FhMWU5NTAwNDk3NjRmZTQ0DQpDb250ZW50LURpc3Bv 6 eSB3YWxrDQotLTVkNDhkNWQ4Y2ZlZjRiNTlhYTJmZDBlNDkwMzk1N2U4DQpDb250ZW50LURpc3Bv
7 c2l0aW9uOiBmb3JtLWRhdG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VKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmT
943 AxMZfilSoFO2xicuMnjFStYMZkHV3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTI 943 AxMZfilSoFO2xicuMnjFStYMZkHV3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTI
944 jyrGTjBn9aVKgY09xujjo55uzvSpUqD/2Q0KLS1mZGUzMDBkMDY1Yzk0MWNhYTFlOTUwMDQ5NzY0 944 jyrGTjBn9aVKgY09xujjo55uzvSpUqD/2Q0KLS01ZDQ4ZDVkOGNmZWY0YjU5YWEyZmQwZTQ5MDM5
945 ZmU0NC0tDQo= 945 NTdlOC0tDQo=
946 headers: 946 headers:
947 Accept: ['*/*'] 947 Accept: ['*/*']
948 Accept-Encoding: ['gzip, deflate'] 948 Accept-Encoding: ['gzip, deflate']
949 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 949 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
950 Connection: [keep-alive] 950 Connection: [keep-alive]
951 Content-Length: ['53645'] 951 Content-Length: ['53645']
952 Content-Type: [multipart/form-data; boundary=fde300d065c941caa1e950049764fe44] 952 Content-Type: [multipart/form-data; boundary=5d48d5d8cfef4b59aa2fd0e4903957e8]
953 User-Agent: [python-requests/2.9.1] 953 User-Agent: [python-requests/2.9.1]
954 method: POST 954 method: POST
955 uri: http://localhost:3000/api/v1/media 955 uri: http://localhost:3000/api/v1/media
956 response: 956 response:
957 body: {string: '{"id":"52","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/052/original/3d84f8964af77003.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/052/small/3d84f8964af77003.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/UBwP2uqaf6mq267w2hU","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 957 body: {string: '{"id":"4","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/004/original/b20cd768b6c6dc3f.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/004/small/b20cd768b6c6dc3f.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/ieYadbDjrrB8NdSb4Jk","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
958 Lennon doing a funny walk"}'} 958 Lennon doing a funny walk"}'}
959 headers: 959 headers:
960 Cache-Control: ['max-age=0, private, must-revalidate'] 960 Cache-Control: ['max-age=0, private, must-revalidate']
961 Content-Type: [application/json; charset=utf-8] 961 Content-Type: [application/json; charset=utf-8]
962 ETag: [W/"722409576f1f39995d8b4412eef4d6f7"] 962 ETag: [W/"35e4bbb8edb33f87e63136f6df1410bd"]
963 Transfer-Encoding: [chunked] 963 Transfer-Encoding: [chunked]
964 Vary: ['Accept-Encoding, Origin'] 964 Vary: ['Accept-Encoding, Origin']
965 X-Content-Type-Options: [nosniff] 965 X-Content-Type-Options: [nosniff]
966 X-Frame-Options: [SAMEORIGIN] 966 X-Frame-Options: [SAMEORIGIN]
967 X-Request-Id: [86f71ed5-de96-4ca1-b31d-ffedd817a6c3] 967 X-Request-Id: [1e8f2128-3a2e-4f7f-bf18-bf300356e64c]
968 X-Runtime: ['0.222089'] 968 X-Runtime: ['0.236498']
969 X-XSS-Protection: [1; mode=block] 969 X-XSS-Protection: [1; mode=block]
970 content-length: ['507'] 970 content-length: ['506']
971 status: {code: 200, message: OK} 971 status: {code: 200, message: OK}
972- request: 972- request:
973 body: media_ids%5B%5D=52&status=LOL+check+this+out 973 body: media_ids%5B%5D=4&status=LOL+check+this+out
974 headers: 974 headers:
975 Accept: ['*/*'] 975 Accept: ['*/*']
976 Accept-Encoding: ['gzip, deflate'] 976 Accept-Encoding: ['gzip, deflate']
977 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 977 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
978 Connection: [keep-alive] 978 Connection: [keep-alive]
979 Content-Length: ['44'] 979 Content-Length: ['43']
980 Content-Type: [application/x-www-form-urlencoded] 980 Content-Type: [application/x-www-form-urlencoded]
981 User-Agent: [python-requests/2.9.1] 981 User-Agent: [python-requests/2.9.1]
982 method: POST 982 method: POST
983 uri: http://localhost:3000/api/v1/statuses 983 uri: http://localhost:3000/api/v1/statuses
984 response: 984 response:
985 body: {string: '{"id":"99979649522941549","created_at":"2018-05-06T00:59:42.625Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979649522941549","content":"\u003cp\u003eLOL 985 body: {string: '{"id":"99984771013851445","created_at":"2018-05-06T22:42:10.374Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984771013851445","content":"\u003cp\u003eLOL
986 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979649522941549","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 986 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984771013851445","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
987 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 987 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
988 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 988 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
989 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[{"id":"52","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/052/original/3d84f8964af77003.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/052/small/3d84f8964af77003.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/UBwP2uqaf6mq267w2hU","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 989 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[{"id":"4","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/004/original/b20cd768b6c6dc3f.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/004/small/b20cd768b6c6dc3f.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/ieYadbDjrrB8NdSb4Jk","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
990 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} 990 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'}
991 headers: 991 headers:
992 Cache-Control: ['max-age=0, private, must-revalidate'] 992 Cache-Control: ['max-age=0, private, must-revalidate']
993 Content-Type: [application/json; charset=utf-8] 993 Content-Type: [application/json; charset=utf-8]
994 ETag: [W/"c2a4071898220c1c166eea266e238832"] 994 ETag: [W/"de596385b2b69d373c05a83370f0664e"]
995 Transfer-Encoding: [chunked] 995 Transfer-Encoding: [chunked]
996 Vary: ['Accept-Encoding, Origin'] 996 Vary: ['Accept-Encoding, Origin']
997 X-Content-Type-Options: [nosniff] 997 X-Content-Type-Options: [nosniff]
998 X-Frame-Options: [SAMEORIGIN] 998 X-Frame-Options: [SAMEORIGIN]
999 X-Request-Id: [f7b6f4cc-4f9f-445d-ac6a-66ca99c52d38] 999 X-Request-Id: [8038ac24-ef93-4eba-ae80-0104d0e74046]
1000 X-Runtime: ['0.144985'] 1000 X-Runtime: ['0.145034']
1001 X-XSS-Protection: [1; mode=block] 1001 X-XSS-Protection: [1; mode=block]
1002 content-length: ['1922'] 1002 content-length: ['1919']
1003 status: {code: 200, message: OK} 1003 status: {code: 200, message: OK}
1004- request: 1004- request:
1005 body: null 1005 body: null
@@ -1011,19 +1011,19 @@ interactions:
1011 Content-Length: ['0'] 1011 Content-Length: ['0']
1012 User-Agent: [python-requests/2.9.1] 1012 User-Agent: [python-requests/2.9.1]
1013 method: DELETE 1013 method: DELETE
1014 uri: http://localhost:3000/api/v1/statuses/99979649522941549 1014 uri: http://localhost:3000/api/v1/statuses/99984771013851445
1015 response: 1015 response:
1016 body: {string: '{}'} 1016 body: {string: '{}'}
1017 headers: 1017 headers:
1018 Cache-Control: ['max-age=0, private, must-revalidate'] 1018 Cache-Control: ['max-age=0, private, must-revalidate']
1019 Content-Type: [application/json; charset=utf-8] 1019 Content-Type: [application/json; charset=utf-8]
1020 ETag: [W/"2a033721a88d32c869f00d6ca405183a"] 1020 ETag: [W/"8a54bafe6bc3420cfd204adda95a1ad8"]
1021 Transfer-Encoding: [chunked] 1021 Transfer-Encoding: [chunked]
1022 Vary: ['Accept-Encoding, Origin'] 1022 Vary: ['Accept-Encoding, Origin']
1023 X-Content-Type-Options: [nosniff] 1023 X-Content-Type-Options: [nosniff]
1024 X-Frame-Options: [SAMEORIGIN] 1024 X-Frame-Options: [SAMEORIGIN]
1025 X-Request-Id: [58ab7405-16e9-4027-a680-51b6c4061f58] 1025 X-Request-Id: [61123c7d-c04c-464d-a8d0-8cb13825fad4]
1026 X-Runtime: ['0.067701'] 1026 X-Runtime: ['0.151311']
1027 X-XSS-Protection: [1; mode=block] 1027 X-XSS-Protection: [1; mode=block]
1028 content-length: ['2'] 1028 content-length: ['2']
1029 status: {code: 200, message: OK} 1029 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)